home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib7
/
v_09_05
/
9n05116b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
306 b
|
16 lines
int main(void)
{
char word[MAXWORD];
unsigned lineno = 1;
while (getword(word, MAXWORD) != EOF)
if (isalpha(word[0]))
xrt_add(word, lineno);
else if (word[0] == '\n')
++lineno;
xrt_print();
xrt_destroy();
return 0;
}